#!/bin/bash

# Performance test for HBase different data types
# @author dino.keco
# @email dino.keco@gmail.com
# @date 2012.06.12

data_types=( string long )
cf_number=1
qf_number=100
table_name=dt_table
num_of_mappers=2
records_per_mapper=100

for data_type in "${data_types[@]}"
do
hadoop jar hbase-showcase-1.0.jar ba.keco.hbase.datatype.MapReduceTest -Dhbase.showcase.cf.number=${cf_number} -Dhbase.showcase.qf.number=${qf_number} -Dhbase.showcase.table.name=${table_name} -Dhbase.showcase.input.records=${records_per_mapper} -Dhbase.showcase.mappers=${num_of_mappers} -Dhbase.showcase.data.type=${data_type}

hadoop fs -du /hbase/${table_name}
done
